<?php

class Admin_ArticleExController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
        // action body
    }

    public function addAction()
    {
        // action body
        $this->view->headScript()->appendFile(
            $this->view->baseUrl("ckeditor/ckeditor.js")
        );
        $form = new Application_Form_ArticleEx();
        if($this->_request->isPost()){
            if($form->isValid($_POST)){
                
            }else{
                $errors = $form->getMessages();
                foreach($errors as $key=>$value){
                    $form->$key->setAttrib("class","error");
                }
            }
        }
        $this->view->form = $form;
    }


}



